package com.monster.valid.common;

import com.monster.exception.ExceptionEnum;
import lombok.Getter;

/**
 * 校验自定义一场
 */
public enum ValidExceptionEnum implements ExceptionEnum {
    /**
     * 异常定义
     */
    VALID_NOT_NULL ("VALID_NOT_NULL", "数据不能为空!"),
    VALID_NUMBER ("VALID_NUMBER", "请输入正确的数字!"),
    VALID_STR_LENGTH ("VALID_STR_LENGTH", "字符串长度错误!"),
    VALID_ID_CARD ("VALID_ID_CARD", "请输入正确的身份证号码!"),
    VALID_DATE ("VALID_DATE", "请输入正确的时间!"),
    ;
    @Getter
    private String code;
    @Getter
    private String msg;

    ValidExceptionEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
